package com.vic.mvc.framework.orm.bean;
/**
 * 表字段的注解
 * @author VIC
 *
 */
public class FieldAnnotationBean {
	/**columnName*/
	private String name;
	private boolean nullable;
	private int length;
	private int precision;
	private int scale;
	
	private String dataType;//数据类型
	
	public FieldAnnotationBean(){}
	
	public FieldAnnotationBean(String name, boolean nullable, int length, int precision, int scale) {
		super();
		this.name = name;
		this.nullable = nullable;
		this.length = length;
		this.precision = precision;
		this.scale = scale;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public boolean isNullable() {
		return nullable;
	}
	public void setNullable(boolean nullable) {
		this.nullable = nullable;
	}
	public int getLength() {
		return length;
	}
	public void setLength(int length) {
		this.length = length;
	}
	public int getPrecision() {
		return precision;
	}
	public void setPrecision(int precision) {
		this.precision = precision;
	}
	public int getScale() {
		return scale;
	}
	public void setScale(int scale) {
		this.scale = scale;
	}
	
	
	public String getDataType() {
		return dataType;
	}

	public void setDataType(String dataType) {
		this.dataType = dataType;
	}

	@Override
	public String toString() {
		return "FieldAnnotationBean [name=" + name + ", nullable=" + nullable + ", length=" + length + ", precision="
				+ precision + ", scale=" + scale + "]";
	}
	
	
	
}
